<ion-view view-title="理财记录" cache-view="false">
    <ion-nav-buttons side="left">
        <back-button></back-button>
    </ion-nav-buttons>
    <ion-content scroll-to-top="1" delegate-handle="scroller"  ng-class="{'has-loading': isOffline}">

        <ion-refresher pulling-text={{PULLING_TEXT}} pulling-icon="" refreshing-text={{REFRESHING_TEXT}}
                       on-refresh="doRefresh()"></ion-refresher>
            <dl style="color:gray;text-align: center" ng-if="curOrders.length == 0&&preMon1Orders.length == 0&&preMon2Orders.length == 0">
                暂无理财记录信息！
            </dl>
            <dl ng-repeat="record in curOrders">
                <a ng-href="{{record.url}}">
                    <div class="kCells kMyProduct Mt10">
                        <div class="kCell">
                            <em>{{record.prod_name}}</em>
                            <p><span class="fr" style="white-space:nowrap;">{{record.entrust_time}}</span>{{record.prod_code}}</p>
                            <div class="kCellExtra"></div>
                        </div>
                        <div class="kCell kQuota">
                            <ul class="clearfix">
                                <li style="width:60%"><p>{{record.buyOrSell=="0" ? "购买金额(元)" : "卖出份额(份)"}}</p><em class="inc">{{record.entrust_balance}}</em></li>
                                <li>交易状态<em class="{{record.success_class}}">{{record.entrust_status_name}}</em></li>
                            </ul>
                        </div>
                    </div>
                    <time ng-show="param.redirect_url" class="ng-hide">
                        <a ng-show="param.redirect_url" ng-click="changeUrl(param.redirect_url)" class="btn">更多</a>
                    </time>
                </a>
            </dl>
            <dl ng-repeat="record in preMon1Orders">
                <a href="{{record.url}}">
                    <div class="kCells kMyProduct Mt10">
                        <div class="kCell">
                            <em>{{record.prod_name}}</em>
                            <p><span class="fr" style="white-space:nowrap;">{{record.entrust_time}}</span>{{record.prod_code}}</p>
                            <div class="kCellExtra"></div>
                        </div>
                        <div class="kCell kQuota">
                            <ul class="clearfix">
                                <li style="width:60%"><p>{{record.buyOrSell=="0" ? "购买金额(元)" : "卖出份额(份)"}}</p><em class="inc">{{record.entrust_balance}}</em></li>
                                <li>交易状态<em class="{{record.success_class}}">{{record.entrust_status_name}}</em></li>
                            </ul>
                        </div>
                    </div>
                    <time ng-show="param.redirect_url" class="ng-hide">
                        <a ng-show="param.redirect_url" ng-click="changeUrl(param.redirect_url)" class="btn">更多</a>
                    </time>
                </a>
            </dl>
            <dl ng-repeat="record in preMon2Orders">
                <a href="{{record.url}}">
                    <div class="kCells kMyProduct Mt10">
                        <div class="kCell">
                            <em>{{record.prod_name}}</em>
                            <p><span class="fr" style="white-space:nowrap;">{{record.entrust_time}}</span>{{record.prod_code}}</p>
                            <div class="kCellExtra"></div>
                        </div>
                        <div class="kCell kQuota">
                            <ul class="clearfix">
                                <li style="width:60%"><p>{{record.buyOrSell=="0" ? "购买金额(元)" : "卖出份额(份)"}}</p><em class="inc">{{record.entrust_balance}}</em></li>
                                <li>交易状态<em class="{{record.success_class}}">{{record.entrust_status_name}}</em></li>
                            </ul>
                        </div>
                    </div>
                    <time ng-show="param.redirect_url" class="ng-hide">
                        <a ng-show="param.redirect_url" ng-click="changeUrl(param.redirect_url)" class="btn">更多</a>
                    </time>
                </a>
            </dl>
    </ion-content>
    <scroll-to-top-button animate="true">
        <a class="backTop">↑</a>
    </scroll-to-top-button>
</ion-view>